<?php $this->load->view('template/header'); ?>
<div class="grid_12 mainbody">
        <h2>Colaboradores</h2>
    <div class="search">
    <?php echo form_open('colaboradores/search'); ?>
          <label for="search">Buscar</label><input type="text" name="search" value="" class="ui-corner-all" />
                <button id="button" class="ui-button ui-widget ui-state-default  ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Buscar</span></button>  <?php echo form_close(); ?>
    </div>
    <a href="<?php echo site_url('colaboradores/add/') ?>"><?php echo img('img/icons/user_add.png'); ?></a>
    <table id="colaboradores">
        <tr>
            <th></th>
            <th></th>
            <th>Nombre</th>
        </tr>
        <?php foreach ($query->result() as $row) { ?>
            <tr>
                <td><a href="<?php echo site_url('colaboradores/edit/' . $row->id) ?>"><?php echo img('img/icons/user_edit.png'); ?></a></td>
                <td><a href="<?php echo site_url('colaboradores/delete/' . $row->id) ?>"><?php echo img('img/icons/user_delete.png'); ?></a></td>
                <td><?php echo $row->nombre ?></td>
            </tr>
        <?php } ?>
    </table>
    <?php echo $paginator ?>
</div>
<?php $this->load->view('template/footer'); ?>